﻿using Cysharp.Threading.Tasks;
using Framework.Manager;
using Shared.UI;

namespace Framework.Task
{
    public class Task_LoadingEnd : Task
    {
        public Task_LoadingEnd() : base(0, "loading end")
        {
            
        }

        protected override async UniTask OnStart()
        {
            // 关闭loading界面
            await UIManager.Instance.Deactive(UIId.Loading);
            
            await OnFinished();
            TaskManager.Instance.Reset();
        }
    }
}